package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: zhongyisheng
 * Date: 2024-09-28
 * Time: 15:30
 */

class MYThread extends Thread{
    @Override
    public void run(){
        while(true){
            System.out.println("hello thread");
        }
    }
}
public class Demo1 {
    public static void main(String[] args) {
        Thread t = new MYThread();
        t.start();while(true){
            System.out.println("hello thread");
        }
    }
}
